package com.bd.rj.frontstage.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.bd.rj.common.entity.Post;
import com.fasterxml.jackson.core.JsonProcessingException;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 白世俊
 * @since 2025-01-03
 */

public interface IPostService extends IService<Post> {


    /**
     *
     * @author WBW
     * 条件查询
     * @param address 地区
     * @param type  类型
     * @param salary    薪资
     * @param page  分页
     * @return
     */
    IPage<Post> conditionSelectPost(String address, String type, String salary, Page<Post> page);
    //List<Post> conditionSelectPost(String address, String type, String salary);

    /**
     *
     * @author WBW
     * 获取热门职位
     * @return
     */
    List<Post> getHotPost();

    /**
     *
     * @author WBW
     * 将搜索记录发送给python
     * @return
     */
    String postPython(String postname,Long uid) throws JsonProcessingException;

    List<Post> getPostByUid(Long uid) throws JsonProcessingException;


}
